<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
    <script type="text/javascript" src="http://api.map.baidu.com/api?type=quick&ak=rUoiQA0wNIKkKPYRIynPI7BmHh4v9GPl&v=1.0"></script>
    <title></title>
    <style>
        @font-face {
            font-family: 'iconfont';  /* project id 201523 */
            src: url('//at.alicdn.com/t/font_22e3ksxvjqncdi.eot');
            src: url('//at.alicdn.com/t/font_22e3ksxvjqncdi.eot?#iefix') format('embedded-opentype'),
            url('//at.alicdn.com/t/font_22e3ksxvjqncdi.woff') format('woff'),
            url('//at.alicdn.com/t/font_22e3ksxvjqncdi.ttf') format('truetype'),
            url('//at.alicdn.com/t/font_22e3ksxvjqncdi.svg#iconfont') format('svg');
        }
        html,body{height:100%;margin:0;}
        #allmap{height:100%;width:100%}
        .iconfont{
            font-family:iconfont;
        }
        a.iconfont{
            position: fixed;
            top: 10px;
            right: 10px;
            font-size: 21px;
            color: black;
            z-index: 99;
        }
        .anchorBL{
            bottom:10px;
        }
    </style>
</head>
<body>
    <a class="iconfont" onclick="back()">&#xe6a1;</a>
    <div id="allmap"></div>

    <script type="text/javascript">
        // 百度地图API功能
        var map = new BMap.Map("allmap");            // 创建Map实例
        var point = new BMap.Point('{$longitude}', '{$latitude}'); // 创建点坐标
        map.centerAndZoom(point,15);                 // 初始化地图,设置中心点坐标和地图级别。
        map.addControl(new BMap.ZoomControl());      //添加地图缩放控件
        var new_point = new BMap.Point('{$longitude}', '{$latitude}');
        var marker = new BMap.Marker(new_point);  // 创建标注
        map.addOverlay(marker);              // 将标注添加到地图中
        map.panTo(new_point);
        function back(){
            location.href =  '{$Think.config.SERVER_HOST}call.html?customerId={$customerId}&module=store&method=getStoreDetail&params=%7B%22id%22:{$id}%7D';
        }
    </script>
</body>
</html>